import request from "./request.js";
import storage from "./storage.js";

export function getSearchKeywords() {
	return new Promise((resolve, reject) => {
		request.get("/search/suggestion").then((result) => {
			resolve(result)
		}).catch(err => [
			reject(err)
		]);
	})
}

export function searchKeywords() {
	return new Promise((resolve, reject) => {
		request.get("/search/search").then((result) => {
			resolve(result)
		}).catch(err => [
			reject(err)
		]);
	})
}